package com.hkbigdata.transform;

import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @author liuanbo
 * @creat 2023-03-18-23:52
 * @see 2194550857@qq.com
 */
public class Flink05_TranfFrom_Shuffle {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();

        env.setParallelism(1);

        env.fromElements(1,3,4,6,3,98)
                .shuffle()
                .print();
        env.execute();
    }
}
